package com.example.hcd.datamanage;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

public class NoticeData {

	//公告ID
	private String id;
	//公告标题
	private String title;
	//公告内容
	private String content;
	//是否置顶
	private String is_sticky_post;
	//置顶天数
	private String sticky_post_days;
	//有效期
	private String invalid_date;
	//关键字
	private String keywords;
	//创建时间
	private String create_time;
	//创建用户
	private String create_by;
	//修改时间
	private String modify_time;
	//修改用户
	private String modify_by;
	//按部门发布
	private String departs_id;
	//按用户发布
	private String users_id;
	//按角色发布
	private String roles_id;
	//创建用户ID
	private String create_id;
	
	public String getImgPrefix()
	{
		return imgPrefix;
	}
	public void setImgPrefix(String imgPrefix)
	{
		this.imgPrefix = imgPrefix;
	}
	private String imgPrefix;
	
	//文件列表
	private ArrayList<String> fileList = new ArrayList<String>();
	//图片列表
	private ArrayList<String> picList = new ArrayList<String>();
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getIs_sticky_post() {
		return is_sticky_post;
	}
	public void setIs_sticky_post(String is_sticky_post) {
		this.is_sticky_post = is_sticky_post;
	}
	public String getSticky_post_days() {
		return sticky_post_days;
	}
	public void setSticky_post_days(String sticky_post_days) {
		this.sticky_post_days = sticky_post_days;
	}
	public String getInvalid_date() {
		return invalid_date;
	}
	public void setInvalid_date(String invalid_date) {
		this.invalid_date = invalid_date;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public String getCreate_time() {
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		
		return mFormat.format(new Date(Long.parseLong(create_time)));
		
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public String getCreate_by() {
		return create_by;
	}
	public void setCreate_by(String create_by) {
		this.create_by = create_by;
	}
	public String getModify_time() {
		return modify_time;
	}
	public void setModify_time(String modify_time) {
		this.modify_time = modify_time;
	}
	public String getModify_by() {
		return modify_by;
	}
	public void setModify_by(String modify_by) {
		this.modify_by = modify_by;
	}
	public String getCreate_id() {
		return create_id;
	}
	public void setCreate_id(String create_id) {
		this.create_id = create_id;
	}
	public ArrayList<String> getFileList() {
		return fileList;
	}
	public void setFileList(ArrayList<String> fileList) {
		this.fileList = fileList;
	}
	public ArrayList<String> getPicList() {
		return picList;
	}
	public void setPicList(ArrayList<String> picList) {
		this.picList = picList;
	}
	public String getDeparts_id() {
		return departs_id;
	}
	public void setDeparts_id(String departs_id) {
		this.departs_id = departs_id;
	}
	public String getUsers_id() {
		return users_id;
	}
	public void setUsers_id(String users_id) {
		this.users_id = users_id;
	}
	public String getRoles_id() {
		return roles_id;
	}
	public void setRoles_id(String roles_id) {
		this.roles_id = roles_id;
	}
}
